package com.rhtchr.util;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import com.rhtchr.util.domain.DictionaryItem;

public interface IGenericDao<T, PK extends Serializable> {
	PK save(T newInstance);

	T find(PK id);

	void update(T transientObject);

	void delete(T persistentObject);

	public abstract List<DictionaryItem> getProvinceList();

	public abstract List<DictionaryItem> getGenderList();

	public abstract List<DictionaryItem> getFamilyIncomeLevelList();

	public abstract List<DictionaryItem> getEducationLevelList();

	public abstract Map<Integer, List<DictionaryItem>> getCityMap();

	public abstract List<DictionaryItem> getBabyStatusList();
}
